<template>
  <footer class="footer">
    <div class="footer-content">
      <div class="footer-section">
        <h3>关于我们</h3>
        <p>养老服务平台致力于为老年人提供优质的养老服务，让晚年生活更有尊严。</p>
      </div>
      <div class="footer-section">
        <h3>联系方式</h3>
        <p>电话：400-123-4567</p>
        <p>邮箱：support@example.com</p>
      </div>
      <div class="footer-section">
        <h3>关注我们</h3>
        <div class="qrcode">
          <img src="/logo.png" alt="微信公众号" />
        </div>
      </div>
    </div>
    <div class="footer-bottom">
      <p>© 2024 养老服务平台 版权所有</p>
    </div>
  </footer>
</template>

<style scoped>
.footer {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  padding: 20px 0 10px;
  margin-top: auto;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-section h3 {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
  margin: 0;
  font-size: 14px;
}

.qrcode {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.qrcode img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
}

.qrcode span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
  text-align: center;
  margin-top: 20px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  font-size: 12px;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .footer-section {
    text-align: center;
  }

  .qrcode {
    margin: 0 auto;
  }
}

@media (prefers-color-scheme: dark) {
  .footer {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  }

  .footer-section h3 {
    color: #fff;
  }

  .footer-section p,
  .qrcode span {
    color: rgba(255, 255, 255, 0.8);
  }

  .footer-bottom {
    border-top-color: rgba(255, 255, 255, 0.1);
  }

  .footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
  }
}
</style>
